<!-- HTML header for doxygen 1.8.13-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="icon" type="image/x-icon" href="favicon.ico" />
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>chigraph: lib/core/include/chi/NodeCompiler.hpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="chigraphDoxygenIcon.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">chigraph
   &#160;<span id="projectnumber">master</span>
   </div>
   <div id="projectbrief">Systems programming language written for beginners in LLVM</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('NodeCompiler_8hpp_source.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">NodeCompiler.hpp</div>  </div>
</div><!--header-->
<div class="contents">
<a href="NodeCompiler_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;</div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="preprocessor">#pragma once</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;</div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="preprocessor">#ifndef CHI_NODE_COMPILER_HPP</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="preprocessor">#define CHI_NODE_COMPILER_HPP</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;</div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="core_2include_2chi_2Fwd_8hpp.html">chi/Fwd.hpp</a>&quot;</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;</div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="preprocessor">#include &lt;cassert&gt;</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="preprocessor">#include &lt;unordered_set&gt;</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="preprocessor">#include &lt;vector&gt;</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;</div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="preprocessor">#include &lt;boost/dynamic_bitset.hpp&gt;</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;</div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespacechi.html">chi</a> {</div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;</div><div class="line"><a name="l00024"></a><span class="lineno"><a class="line" href="structchi_1_1NodeCompiler.html">   24</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structchi_1_1NodeCompiler.html">NodeCompiler</a> {</div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;    <a class="code" href="structchi_1_1NodeCompiler.html#a60d81f093668468eb14be0e18e319ed5">NodeCompiler</a>(<a class="code" href="structchi_1_1FunctionCompiler.html">FunctionCompiler</a>&amp; functionCompiler, <a class="code" href="structchi_1_1NodeInstance.html">NodeInstance</a>&amp; inst);</div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;</div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;    <a class="code" href="structchi_1_1NodeCompiler.html#a60d81f093668468eb14be0e18e319ed5">NodeCompiler</a>(<span class="keyword">const</span> <a class="code" href="structchi_1_1NodeCompiler.html">NodeCompiler</a>&amp;) = <span class="keyword">delete</span>;</div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;</div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;    <a class="code" href="structchi_1_1NodeCompiler.html#a60d81f093668468eb14be0e18e319ed5">NodeCompiler</a>(<a class="code" href="structchi_1_1NodeCompiler.html">NodeCompiler</a>&amp;&amp;) = <span class="keywordflow">default</span>;</div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;</div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;    <a class="code" href="structchi_1_1NodeCompiler.html">NodeCompiler</a>&amp; operator=(<span class="keyword">const</span> <a class="code" href="structchi_1_1NodeCompiler.html">NodeCompiler</a>&amp;) = <span class="keyword">delete</span>;</div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;</div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;    <a class="code" href="structchi_1_1NodeCompiler.html">NodeCompiler</a>&amp; operator=(<a class="code" href="structchi_1_1NodeCompiler.html">NodeCompiler</a>&amp;&amp;) = <span class="keywordflow">default</span>;</div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;</div><div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="structchi_1_1NodeCompiler.html#afd650ba41704bbeca337cbadb18f03cf">   42</a></span>&#160;    <a class="code" href="structchi_1_1FunctionCompiler.html">FunctionCompiler</a>&amp; <a class="code" href="structchi_1_1NodeCompiler.html#afd650ba41704bbeca337cbadb18f03cf">funcCompiler</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> *mCompiler; }</div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;</div><div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="structchi_1_1NodeCompiler.html#a8a595537ffd4b3116059d59e3fd61f8b">   46</a></span>&#160;    <a class="code" href="structchi_1_1NodeInstance.html">NodeInstance</a>&amp; <a class="code" href="structchi_1_1NodeCompiler.html#a8a595537ffd4b3116059d59e3fd61f8b">node</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> *mNode; }</div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;</div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="structchi_1_1NodeCompiler.html#aa31a7c7955b51e5610b966f81bdc989d">pure</a>() <span class="keyword">const</span>;</div><div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;</div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="structchi_1_1NodeCompiler.html#af391b4e8ecebe8859490749bac0425de">compile_stage1</a>(<span class="keywordtype">size_t</span> inputExecID);</div><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;</div><div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;    <a class="code" href="structchi_1_1Result.html">Result</a> <a class="code" href="structchi_1_1NodeCompiler.html#ac3f5bd1f1f84fc1b35fc8ad54db3c844">compile_stage2</a>(std::vector&lt;llvm::BasicBlock*&gt; trailingBlocks, <span class="keywordtype">size_t</span> inputExecID);</div><div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;</div><div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="structchi_1_1NodeCompiler.html#ab3db1222a66ea1767cd6dbc8a8a10963">compiled</a>(<span class="keywordtype">size_t</span> inputExecID) <span class="keyword">const</span>;</div><div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;</div><div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;    llvm::BasicBlock&amp; <a class="code" href="structchi_1_1NodeCompiler.html#a12c42cfcd23400c523184966ed238806">firstBlock</a>(<span class="keywordtype">size_t</span> inputExecID) <span class="keyword">const</span>;</div><div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;</div><div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;    llvm::BasicBlock&amp; <a class="code" href="structchi_1_1NodeCompiler.html#ac63b5729c1bdb67a231a1f948ad59374">codeBlock</a>(<span class="keywordtype">size_t</span> inputExecID) <span class="keyword">const</span>;</div><div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;</div><div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;    llvm::Module&amp; <a class="code" href="structchi_1_1NodeCompiler.html#a3825379c4840a017b6ab91ec5b42cc6c">llvmModule</a>() <span class="keyword">const</span>;</div><div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;</div><div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;    <a class="code" href="structchi_1_1Context.html">Context</a>&amp; <a class="code" href="structchi_1_1NodeCompiler.html#a7b0bd7aecf8cfc98804b31b21066b6d1">context</a>() <span class="keyword">const</span>;</div><div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;</div><div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;    <span class="keywordtype">size_t</span> <a class="code" href="structchi_1_1NodeCompiler.html#a4599a3322541fe67adfa343c19b00dc4">inputExecs</a>() <span class="keyword">const</span>;</div><div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;</div><div class="line"><a name="l00105"></a><span class="lineno"><a class="line" href="structchi_1_1NodeCompiler.html#a4798bbddf994de6c4e3f607991456e09">  105</a></span>&#160;    std::vector&lt;llvm::Value*&gt; <a class="code" href="structchi_1_1NodeCompiler.html#a4798bbddf994de6c4e3f607991456e09">returnValues</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mReturnValues; }</div><div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;</div><div class="line"><a name="l00110"></a><span class="lineno"><a class="line" href="structchi_1_1NodeCompiler.html#a7dc06ad0390f2113fbeb5e7c0cf3dd06">  110</a></span>&#160;    llvm::IndirectBrInst&amp; <a class="code" href="structchi_1_1NodeCompiler.html#a7dc06ad0390f2113fbeb5e7c0cf3dd06">jumpBackInst</a>()<span class="keyword"> const </span>{</div><div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;        assert(<a class="code" href="structchi_1_1NodeCompiler.html#aa31a7c7955b51e5610b966f81bdc989d">pure</a>() &amp;&amp; <span class="stringliteral">&quot;Cannot get jump back inst for a nonpure node&quot;</span>);</div><div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;        <span class="keywordflow">return</span> *mJumpBackInst;</div><div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;    }</div><div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;</div><div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;<span class="keyword">private</span>:</div><div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;    <a class="code" href="structchi_1_1FunctionCompiler.html">FunctionCompiler</a>* mCompiler;</div><div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;    <a class="code" href="structchi_1_1NodeInstance.html">NodeInstance</a>*     mNode;</div><div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;</div><div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;    std::vector&lt;std::vector&lt;llvm::BasicBlock*&gt;&gt; mPureBlocks;</div><div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;    std::vector&lt;llvm::BasicBlock*&gt;              mCodeBlocks;</div><div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;</div><div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;    std::vector&lt;llvm::Value*&gt; mReturnValues;</div><div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;</div><div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;    boost::dynamic_bitset&lt;&gt; mCompiledInputs;</div><div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;</div><div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;    llvm::IndirectBrInst* mJumpBackInst = <span class="keyword">nullptr</span>;</div><div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;};</div><div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;</div><div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;std::vector&lt;NodeInstance*&gt; <a class="code" href="namespacechi.html#a00be19cc8464681f474ecbcd27abe13c">dependentPuresRecursive</a>(<span class="keyword">const</span> <a class="code" href="structchi_1_1NodeInstance.html">NodeInstance</a>&amp; inst);</div><div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;</div><div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;}  <span class="comment">// namespace chi</span></div><div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;</div><div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;<span class="preprocessor">#endif  // CHI_NODE_COMPILER_HPP</span></div><div class="ttc" id="structchi_1_1NodeCompiler_html_ac3f5bd1f1f84fc1b35fc8ad54db3c844"><div class="ttname"><a href="structchi_1_1NodeCompiler.html#ac3f5bd1f1f84fc1b35fc8ad54db3c844">chi::NodeCompiler::compile_stage2</a></div><div class="ttdeci">Result compile_stage2(std::vector&lt; llvm::BasicBlock *&gt; trailingBlocks, size_t inputExecID)</div><div class="ttdoc">Fill the codegen block If compile_stage1 hasn&amp;#39;t been called for this inputExecID, then it will be cal...</div><div class="ttdef"><b>Definition:</b> <a href="NodeCompiler_8cpp_source.html#l00151">NodeCompiler.cpp:151</a></div></div>
<div class="ttc" id="structchi_1_1NodeCompiler_html_ac63b5729c1bdb67a231a1f948ad59374"><div class="ttname"><a href="structchi_1_1NodeCompiler.html#ac63b5729c1bdb67a231a1f948ad59374">chi::NodeCompiler::codeBlock</a></div><div class="ttdeci">llvm::BasicBlock &amp; codeBlock(size_t inputExecID) const</div><div class="ttdoc">Get the code block for a given inputExecID Requires that compile_stage1 has been called for this ID...</div><div class="ttdef"><b>Definition:</b> <a href="NodeCompiler_8cpp_source.html#l00221">NodeCompiler.cpp:221</a></div></div>
<div class="ttc" id="structchi_1_1NodeCompiler_html_a3825379c4840a017b6ab91ec5b42cc6c"><div class="ttname"><a href="structchi_1_1NodeCompiler.html#a3825379c4840a017b6ab91ec5b42cc6c">chi::NodeCompiler::llvmModule</a></div><div class="ttdeci">llvm::Module &amp; llvmModule() const</div><div class="ttdoc">Get the module being generated. </div><div class="ttdef"><b>Definition:</b> <a href="NodeCompiler_8cpp_source.html#l00226">NodeCompiler.cpp:226</a></div></div>
<div class="ttc" id="structchi_1_1NodeCompiler_html_aa31a7c7955b51e5610b966f81bdc989d"><div class="ttname"><a href="structchi_1_1NodeCompiler.html#aa31a7c7955b51e5610b966f81bdc989d">chi::NodeCompiler::pure</a></div><div class="ttdeci">bool pure() const</div><div class="ttdoc">node().type().pure() </div><div class="ttdef"><b>Definition:</b> <a href="NodeCompiler_8cpp_source.html#l00089">NodeCompiler.cpp:89</a></div></div>
<div class="ttc" id="core_2include_2chi_2Fwd_8hpp_html"><div class="ttname"><a href="core_2include_2chi_2Fwd_8hpp.html">Fwd.hpp</a></div><div class="ttdoc">Forward declares all the chigraph data types. </div></div>
<div class="ttc" id="structchi_1_1NodeCompiler_html_afd650ba41704bbeca337cbadb18f03cf"><div class="ttname"><a href="structchi_1_1NodeCompiler.html#afd650ba41704bbeca337cbadb18f03cf">chi::NodeCompiler::funcCompiler</a></div><div class="ttdeci">FunctionCompiler &amp; funcCompiler() const</div><div class="ttdoc">Get the function compiler. </div><div class="ttdef"><b>Definition:</b> <a href="NodeCompiler_8hpp_source.html#l00042">NodeCompiler.hpp:42</a></div></div>
<div class="ttc" id="structchi_1_1NodeInstance_html"><div class="ttname"><a href="structchi_1_1NodeInstance.html">chi::NodeInstance</a></div><div class="ttdoc">An instance of a node. </div><div class="ttdef"><b>Definition:</b> <a href="NodeInstance_8hpp_source.html#l00019">NodeInstance.hpp:19</a></div></div>
<div class="ttc" id="namespacechi_html_a00be19cc8464681f474ecbcd27abe13c"><div class="ttname"><a href="namespacechi.html#a00be19cc8464681f474ecbcd27abe13c">chi::dependentPuresRecursive</a></div><div class="ttdeci">std::vector&lt; NodeInstance * &gt; dependentPuresRecursive(const NodeInstance &amp;inst)</div><div class="ttdoc">Get the pures a NodeInstance relies on These are all the dependent pures (it&amp;#39;s fetched recursively) T...</div><div class="ttdef"><b>Definition:</b> <a href="NodeCompiler_8cpp_source.html#l00244">NodeCompiler.cpp:244</a></div></div>
<div class="ttc" id="structchi_1_1NodeCompiler_html"><div class="ttname"><a href="structchi_1_1NodeCompiler.html">chi::NodeCompiler</a></div><div class="ttdoc">Helper to compile nodes. </div><div class="ttdef"><b>Definition:</b> <a href="NodeCompiler_8hpp_source.html#l00024">NodeCompiler.hpp:24</a></div></div>
<div class="ttc" id="structchi_1_1NodeCompiler_html_a4599a3322541fe67adfa343c19b00dc4"><div class="ttname"><a href="structchi_1_1NodeCompiler.html#a4599a3322541fe67adfa343c19b00dc4">chi::NodeCompiler::inputExecs</a></div><div class="ttdeci">size_t inputExecs() const</div><div class="ttdoc">The number of input execs that we can compile If it&amp;#39;s pure or an entry node, this is 1...</div><div class="ttdef"><b>Definition:</b> <a href="NodeCompiler_8cpp_source.html#l00235">NodeCompiler.cpp:235</a></div></div>
<div class="ttc" id="structchi_1_1Context_html"><div class="ttname"><a href="structchi_1_1Context.html">chi::Context</a></div><div class="ttdoc">The class that handles the loading, creation, storing, and compilation of modules It also stores a LL...</div><div class="ttdef"><b>Definition:</b> <a href="Context_8hpp_source.html#l00055">Context.hpp:55</a></div></div>
<div class="ttc" id="structchi_1_1NodeCompiler_html_a8a595537ffd4b3116059d59e3fd61f8b"><div class="ttname"><a href="structchi_1_1NodeCompiler.html#a8a595537ffd4b3116059d59e3fd61f8b">chi::NodeCompiler::node</a></div><div class="ttdeci">NodeInstance &amp; node() const</div><div class="ttdoc">The node we&amp;#39;re compiling. </div><div class="ttdef"><b>Definition:</b> <a href="NodeCompiler_8hpp_source.html#l00046">NodeCompiler.hpp:46</a></div></div>
<div class="ttc" id="structchi_1_1NodeCompiler_html_af391b4e8ecebe8859490749bac0425de"><div class="ttname"><a href="structchi_1_1NodeCompiler.html#af391b4e8ecebe8859490749bac0425de">chi::NodeCompiler::compile_stage1</a></div><div class="ttdeci">void compile_stage1(size_t inputExecID)</div><div class="ttdoc">Add the basic blocks and fill the pure blocks, but don&amp;#39;t fill the code block nop if its already been ...</div><div class="ttdef"><b>Definition:</b> <a href="NodeCompiler_8cpp_source.html#l00091">NodeCompiler.cpp:91</a></div></div>
<div class="ttc" id="structchi_1_1FunctionCompiler_html"><div class="ttname"><a href="structchi_1_1FunctionCompiler.html">chi::FunctionCompiler</a></div><div class="ttdoc">Class for compiling GraphFunctions into llvm::Functions. </div><div class="ttdef"><b>Definition:</b> <a href="FunctionCompiler_8hpp_source.html#l00024">FunctionCompiler.hpp:24</a></div></div>
<div class="ttc" id="structchi_1_1NodeCompiler_html_a4798bbddf994de6c4e3f607991456e09"><div class="ttname"><a href="structchi_1_1NodeCompiler.html#a4798bbddf994de6c4e3f607991456e09">chi::NodeCompiler::returnValues</a></div><div class="ttdeci">std::vector&lt; llvm::Value * &gt; returnValues() const</div><div class="ttdoc">Get return values. </div><div class="ttdef"><b>Definition:</b> <a href="NodeCompiler_8hpp_source.html#l00105">NodeCompiler.hpp:105</a></div></div>
<div class="ttc" id="structchi_1_1NodeCompiler_html_a7b0bd7aecf8cfc98804b31b21066b6d1"><div class="ttname"><a href="structchi_1_1NodeCompiler.html#a7b0bd7aecf8cfc98804b31b21066b6d1">chi::NodeCompiler::context</a></div><div class="ttdeci">Context &amp; context() const</div><div class="ttdoc">Just node().context() </div><div class="ttdef"><b>Definition:</b> <a href="NodeCompiler_8cpp_source.html#l00233">NodeCompiler.cpp:233</a></div></div>
<div class="ttc" id="structchi_1_1NodeCompiler_html_ab3db1222a66ea1767cd6dbc8a8a10963"><div class="ttname"><a href="structchi_1_1NodeCompiler.html#ab3db1222a66ea1767cd6dbc8a8a10963">chi::NodeCompiler::compiled</a></div><div class="ttdeci">bool compiled(size_t inputExecID) const</div><div class="ttdoc">Get if compile_stage2 has been called for a given inputExecID. </div><div class="ttdef"><b>Definition:</b> <a href="NodeCompiler_8cpp_source.html#l00228">NodeCompiler.cpp:228</a></div></div>
<div class="ttc" id="structchi_1_1NodeCompiler_html_a60d81f093668468eb14be0e18e319ed5"><div class="ttname"><a href="structchi_1_1NodeCompiler.html#a60d81f093668468eb14be0e18e319ed5">chi::NodeCompiler::NodeCompiler</a></div><div class="ttdeci">NodeCompiler(FunctionCompiler &amp;functionCompiler, NodeInstance &amp;inst)</div><div class="ttdoc">Constructor. </div><div class="ttdef"><b>Definition:</b> <a href="NodeCompiler_8cpp_source.html#l00022">NodeCompiler.cpp:22</a></div></div>
<div class="ttc" id="namespacechi_html"><div class="ttname"><a href="namespacechi.html">chi</a></div><div class="ttdoc">The namespace where chigraph lives. </div><div class="ttdef"><b>Definition:</b> <a href="BitcodeParser_8hpp_source.html#l00012">BitcodeParser.hpp:12</a></div></div>
<div class="ttc" id="structchi_1_1Result_html"><div class="ttname"><a href="structchi_1_1Result.html">chi::Result</a></div><div class="ttdoc">The result object, used for identifiying errors with good diagnostics. </div><div class="ttdef"><b>Definition:</b> <a href="Result_8hpp_source.html#l00072">Result.hpp:72</a></div></div>
<div class="ttc" id="structchi_1_1NodeCompiler_html_a12c42cfcd23400c523184966ed238806"><div class="ttname"><a href="structchi_1_1NodeCompiler.html#a12c42cfcd23400c523184966ed238806">chi::NodeCompiler::firstBlock</a></div><div class="ttdeci">llvm::BasicBlock &amp; firstBlock(size_t inputExecID) const</div><div class="ttdoc">Get the first block to jump to for the node If there are dependent pures, it&amp;#39;s the first pure block O...</div><div class="ttdef"><b>Definition:</b> <a href="NodeCompiler_8cpp_source.html#l00214">NodeCompiler.cpp:214</a></div></div>
<div class="ttc" id="structchi_1_1NodeCompiler_html_a7dc06ad0390f2113fbeb5e7c0cf3dd06"><div class="ttname"><a href="structchi_1_1NodeCompiler.html#a7dc06ad0390f2113fbeb5e7c0cf3dd06">chi::NodeCompiler::jumpBackInst</a></div><div class="ttdeci">llvm::IndirectBrInst &amp; jumpBackInst() const</div><div class="ttdoc">Get the IndirectBrInst* for the pure. </div><div class="ttdef"><b>Definition:</b> <a href="NodeCompiler_8hpp_source.html#l00110">NodeCompiler.hpp:110</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_97aefd0d527b934f1d99a682da8fe6a9.html">lib</a></li><li class="navelem"><a class="el" href="dir_a2d5e495f4b604d04f57d90095a59dd6.html">core</a></li><li class="navelem"><a class="el" href="dir_a979adfa99d5a8626731f83d5067598b.html">include</a></li><li class="navelem"><a class="el" href="dir_afbc2aa4d9616322ddf4041ba4f8ade6.html">chi</a></li><li class="navelem"><a class="el" href="NodeCompiler_8hpp.html">NodeCompiler.hpp</a></li>
    <li class="footer">Generated on Sat Sep 16 2017 17:41:35 for chigraph by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li>
  </ul>
</div>
</body>
</html>
